@extends('admin::layouts.master')
@section('content')
    <div class="modal-header">
        <h3 id="ModalLabel">{{ $title or '' }}</h3>
    </div>
    <div class="modal-body">
        <div class="row">
            <label for="productModel" class="col-sm-2 control-label">Product model</label>
            <div class="col-sm-10">
              {{ $product->product_model;}}
            </div>
        </div>

        <div class="row">
            <label for="productName" class="col-sm-2 control-label">Product name</label>
            <div class="col-sm-10">
                {{ $product->product_name;}}
            </div>
        </div>

        <div class="row">
          <label for="quantity" class="col-sm-2 control-label">Quantity</label>
          <div class="col-sm-10">
              {{ $product->product_quantity;}}
          </div>
        </div>

        <div class="row">
          <label for="price" class="col-sm-2 control-label">Price</label>
          <div class="col-sm-10">
              {{ $product->product_price;}}
          </div>
        </div>

        <div class="row">
          <label for="price" class="col-sm-2 control-label">Manufacturer</label>
          <div class="col-sm-10">
              {{ $product->manufacturer->manufacturer_name }}
          </div>
        </div>

        <div class="row">
          <label for="price" class="col-sm-2 control-label">Category</label>
          <div class="col-sm-10">
              {{ $product->category->category_name }}
          </div>
        </div>

        <div class="row">
          <label for="price" class="col-sm-2 control-label">Created at</label>
          <div class="col-sm-10">
              {{ $product->created_at }}
          </div>
        </div>

        <div class="row">
          <label for="price" class="col-sm-2 control-label">Updated at</label>
          <div class="col-sm-10">
              {{ $product->updated_at }}
          </div>
        </div>

        <div class="row">
          <label for="price" class="col-sm-2 control-label">Image</label>
          <div class="col-sm-10">
              <a class = 'product' href="{{URL::to('/public').'/'.$product->product_image_main}}">
                    {{ HTML::image(URL::to('/public').'/'.$product->product_image_thumbnail, '', array('width' => '300')) }}
              </a>
          </div>
        </div>
        <div class="row">
            <label for="Status" class="col-sm-2 control-label">Status</label>
            <div class="col-sm-10">@if($product->status) Published @else Unpublished @endif</div>
        </div>
    </div>
    <div class="modal-footer"></div>
@stop